package com.zte.purchase.service;

import com.zte.market.pojo.City;
import com.zte.market.pojo.Custom;
import com.zte.purchase.pojo.PurchaseCBrand;
import com.zte.purchase.pojo.PurchaseCFirm;
import com.zte.util.PageModel;

import java.util.ArrayList;
import java.util.List;

/**
 * @author luode
 * @version 1.0
 * @date 2022/10/02 星期日 17:43
 */
public interface IPurchaseService {
    /**
     * 查询采购部管理职位
     * @param job_dept_id 部门id
     * @return
     */
    public ArrayList selectJobname(int job_dept_id);

    /**
     * 查找采购部管理人员名称
     * @param job_name
     * @return
     */
    public ArrayList selectUname(String job_name);

    /**
     * 查找品牌信息
     * @param brand
     * @return
     */
    public PageModel<PurchaseCBrand> selectbrand(PurchaseCBrand brand,PageModel<PurchaseCBrand> pageModel);

    /**
     * 点击恢复/注销改变品牌状态
     * @param brand
     */
    public int updateBrandStatus(PurchaseCBrand brand);

    /**
     * 增加品牌
     * @param brand
     * @return
     */
    public int addBrand(PurchaseCBrand brand);

    /**
     * 跳转修改品牌页面
     * @param brand
     * @return
     */
    public PurchaseCBrand selectbrandOne(PurchaseCBrand brand);

    /**
     * 修改某一品牌
     * @param brand
     * @return
     */
    public int updateBrand(PurchaseCBrand brand);

    /**
     * 查找厂商信息
     * @param purchaseCFirm
     * @param cityList
     * @param pageSize
     * @param pageNum
     * @return
     */
    public PageModel<PurchaseCFirm> queryByParam(PurchaseCFirm purchaseCFirm, List<City> cityList, Integer pageSize, Integer pageNum);

    /**
     * 获取所有客户信息,并向数据中添加相关类
     * @return public List<PurchaseCFirm>
     */
    public List<PurchaseCFirm> getAllFirm();
}
